package main

import "fmt"

func main() {
	var input string
	_, err := fmt.Scanln(&input)
	if err != nil {
		return
	}
	//num1, numA, numa := count(input)
	//fmt.Print("数字：", num1, ",\t大写字母:", numA, ",\t小写字母：", numa)
	fmt.Print(negation(input))
}
func count(str string) (int, int, int) {
	num1 := 0
	numA := 0
	numa := 0
	for i := 0; i < len(str); i++ {
		if str[i] >= 48 && str[i] <= 57 {
			num1++
		} else if str[i] >= 65 && str[i] <= 90 {
			numA++
		} else if str[i] >= 97 && str[i] <= 122 {
			numa++
		}
	}
	return num1, numA, numa
}

func negation(str string) string {
	re := ""
	for _, i := range str {
		re = fmt.Sprintf("%c%s", i, re)
	}
	return re
}
